﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BlackjackSimulator
{
    public class Dealer
    {
        #region Attributes
        protected Hand _Hand;
        public Hand Hand
        {
            get { return _Hand; }
            set { _Hand = value; }
        }

        protected int _Point;
        public int Point
        {
            get { return _Point; }
            set { _Point = value; }
        }
        #endregion

        public Dealer()
        {
            this._Hand = new Hand();
            this._Point = 0;
        }

        public string Display()
        {
            string display = "** ";
            for (int i = 1; i < Hand.GetCount(); i++)
            {
                display += Hand.GetCard(i).ToString(true, true) + " ";
            }
            return display;
        }

        public string EndGameDisplay()
        {
            string display = "";
            for (int i = 0; i < Hand.GetCount(); i++)
            {
                display += Hand.GetCard(i).ToString(true, true) + " ";
            }
            return display;
        }

        public void Reset()
        {
            _Hand = new Hand();
            _Point = 0;
        }
    }
}
